# -*- coding: utf-8 -*-

# @File    : main.py
# @Date    : 2022-06-24
# @Author  : luoyulong
from unit import *
from subjects_of_scientific import *
from fast_study import *
from rich import print
from rich.console import Console

'''
注意：
不同年度课程的'stageId'会变化，更新年度需要手动更新stageId，在当年度的选课界面抓包即可。

'''
# stageId


if __name__ == "__main__":
    install_requirements()
    console.print(Panel('[yellow]INPUT YOUR PHONE NUMBER AND PRESS ENTER.[/]'))
    phone = input(":")
    console.print(Panel('[yellow]INPUT YOUR PASSWORD AND PRESS ENTER.[/]'))
    passwd = input(":")
    console.print(Panel(f'[yellow]YOUR INPUT ACCOUNT INFO\nPHONE NUMBER:{phone}\nPASSWORD:{passwd}[/]'))
    console.print("确认你的输入信息没有错误，按任意键继续..")
    input("")
    console.print("稍作等待,程序需要一些时间来获取cookies")
    AutoStudy(phone, passwd)
